<?php namespace Summer\Hjd\Models;

use Model;

/**
 * Model
 */
class LevelsModel extends Model
{
    use \Winter\Storm\Database\Traits\Validation;
    

    /**
     * @var string The database table used by the model.
     */
    public $table = 'summer_hjd_levels';

    /**
     * @var array Validation rules
     */
    public $rules = [
        'code' => 'required|unique:summer_hjd_levels',
        'title' => 'required|between:2,255',
    ];
    public $attachOne = [
        'cover' => 'System\Models\File'
    ];
}
